<div class="pm_modal contact-encryption-modal" role="dialog" style="display: block;">
    <div class="modal-dialog">
        <button
            type="button"
            ng-click="ctrl.cancel()"
            aria-hidden="true"
            title-translate="Close"
            title-translate-context="Action"
            class="fa fa-times close"></button>

        <div class="modal-content">
            <header class="modal-header">
                <h4 class="modal-title">{{::ctrl.title}}</h4>
            </header>

            <div class="modal-body">
                <form class="contactDetails-container" name="contactForm" novalidate>
                    <contact-pgp
                        data-form="ctrl.form"
                        data-model="ctrl.model"
                        data-email="{{ ctrl.email }}"
                        data-internal-keys="ctrl.internalKeys"></contact-pgp>
                </form>
            </div>
        </div>

        <footer class="modal-footer">
            <button
                class="pm_button modal-footer-button"
                ng-click="ctrl.cancel()"
                translate-context="Action"
                translate>Cancel</button>

            <button
                class="pm_button modal-footer-button"
                tabindex="1"
                ng-click="ctrl.save()"
                ng-disabled="ctrl.internalKeys.RecipientType !== 1 && !ctrl.model.Key[0].value && ctrl.model.Encrypt[0].value">
                    <span
                        ng-if="ctrl.directSave"
                        translate-context="Action"
                        translate>Save</span>
                    <span
                        ng-if="!ctrl.directSave"
                        translate-context="Action"
                        translate>Done</span>
                </button>
        </footer>
    </div>
    <div class="modal-overlay"></div>
</div>
